package com.fc.mall.service;

import com.fc.mall.dto.GroupPromotionParam;
import com.fc.mall.dto.GroupPromotionRequest;
import com.fc.mall.dto.PmsGroupBuy;
import com.fc.mall.model.SmsGroupbuyPromotion;

import java.util.List;

/**
 * Created by sunny on 2019/10/12.
 */
public interface SmsGroupPromotionService {

    List<SmsGroupbuyPromotion> getList(GroupPromotionParam groupPromotionParam, Integer pageNum, Integer pageSize);

    int createOrUpdateGroupPromotin(GroupPromotionRequest groupPromotionRequest);

    SmsGroupbuyPromotion getGroupPromotionById(Long id);

    int delGroupPromotionById(Long id);

    List<PmsGroupBuy> getPromotionProductList(Long pid, Integer pageNum, Integer pageSize);

    int addProductForPromotion(Long promotionId, Long pid);

    int removeProductFromPromotion(Long promotionId, Long pid);
}
